﻿<%@ Page Language="C#" Theme="skin_control" AutoEventWireup="true" CodeFile="UserPlanWeekAdd.aspx.cs"
    Inherits="UserPlanWeek_UserPlanWeekAdd" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>员工周计划添加</title>
    <link href="../App_Themes/css/main_css.css" rel="stylesheet" type="text/css" />
    <script src="../Js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>

    <script type="text/javascript" language="javascript">
        
            function department(str)
            {
                window.open('../WebCommon/Department.aspx?SID=' + str, '', 'width=700,height=580,top=200, left=300'); 
            }
              
       
    </script>

    <script type="text/javascript" language="javascript">
        function userinfo(str)
            {
                window.open('../WebCommon/UserInfo.aspx?SID=' + str, '', 'width=700,height=580,top=150, left=300'); 
            }
    </script>

    <script type="text/javascript" language="javascript">
        function slavedepartment(str)
            {
                window.open('../WebCommon/UserDepartmentSlave.aspx?SID=' + str, '', 'width=700,height=580,top=80, left=250'); 
            }
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="True">
        </asp:ScriptManager>
        <div>
            <table cellpadding="0" cellspacing="0" border="0" width="100%">
                <tr>
                    <td class="firstbjcolor" colspan="8" style="height: 14px;">
                        <span class="currentHere">当前位置:员工周计划管理-&gt;添加员工周计划</span></td>
                </tr>
                <tr>
                    <td style="height: 1; width: 100%;">
                    </td>
                </tr>
                <tr>
                    <td colspan="8" style="background-repeat: repeat-x; background-image: url(../images/secondRow.gif);
                        height: 30px;">
                        部门:<asp:DropDownList ID="drpDepartment" runat="server" SkinID="dropdownlistSkin">
                        </asp:DropDownList>年份:<asp:DropDownList ID="drpYear" runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="drpYear_SelectedIndexChanged" SkinID="dropdownlistSkin">
                        </asp:DropDownList>年周期:<asp:DropDownList ID="drpQuarterDate" runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="drpQuarterDate_SelectedIndexChanged" SkinID="dropdownlistSkin">
                        </asp:DropDownList>月周期:<asp:DropDownList ID="drpMonthDate" runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="drpMonthDate_SelectedIndexChanged" SkinID="dropdownlistSkin">
                        </asp:DropDownList>周周期:<asp:DropDownList ID="drpWeekDate" runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="drpWeekDate_SelectedIndexChanged" SkinID="dropdownlistSkin">
                        </asp:DropDownList>
                        <asp:CheckBox ID="ckbAllSelect" runat="server" Text="全选" AutoPostBack="True" OnCheckedChanged="ckbAllSelect_CheckedChanged" />
                        <asp:Button ID="btnSave" runat="server" Text="保存待发" OnClick="btnSave_Click"  
                            Width="65px" />
                        <asp:Button ID="btnOk" runat="server" Text="立即提交" OnClick="btnOk_Click"  
                            Width="65px" OnClientClick="return confirm('确认要提交吗？');" />
                        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click"  
                            Text="上传附件" Width="65px" />
                        <asp:Button ID="btnModify" runat="server" OnClick="btnModify_Click" 
                            Text="修改" />
                        </td>
                </tr>
                <tr>
                    <td style="height: 1; width: 100%;">
                    </td>
                </tr>
                <tr>
                    <td colspan="8">
                        <div style="height: 18px; width: 98.7%" id="Div1">
                            <table cellpadding="0" cellspacing="1" style="background-color: #d0d0ce;" border="0"
                                width="100%">
                                <tr style="background-color: #ffffff;">
                                    <td class="PlanModifyTableHeader" style="width: 4%">
                                        选择</td>
                                    <td class="PlanModifyTableHeader" style="width: 4%" valign="middle">
                                        计划编号</td>
                                    <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 7%">
                                        计划名称</td>
                                    <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 7%">
                                        实施步骤</td>
                                    <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 10%">
                                        计划来源</td>
                                    <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 8%">
                                        完成时间</td>
                                    <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 10%">
                                        责任部门</td>
                                    <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 8%">
                                        责任人<a href="#" onclick="javascript:userinfo(parentNode.firstChild.id );"></a></td>
                                    <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 9%">
                                        配合部门<a href="#" onclick="javascript:slavedepartment(parentNode.firstChild.id );"></a></td>
                                    <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 10%">
                                        配合部门责任</td>
                                    <td class="PlanModifyTableHeader" valign="middle" style="width: 8%" align="center">
                                        评估人<a href="#" onclick="javascript:userinfo(parentNode.firstChild.id );"></a></td>
                                    <td class="PlanModifyTableHeader" valign="middle" style="width: 7%" align="center">
                                        备注</td>
                                    <td class="PlanModifyTableHeader" style="width: 8%" valign="middle" align="center">
                                        操作</td>
                                </tr>
                            </table>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td colspan="8">
                    <div style="overflow-y: scroll; height: 400px; width: 100%" id="dvBody">
                            <asp:GridView ID="gdvWeekPlan" runat="server" AutoGenerateColumns="False" Width="100%"
                                DataKeyNames="WeekPlanId,PlanSendState,Source,MonthPlanId,PlanStep" SkinID="gridviewSkin"
                                ShowHeader="False">
                                <Columns>
                                    <asp:TemplateField HeaderText="选择">
                                        <ItemStyle Width="4%" HorizontalAlign="Center" Wrap="False" VerticalAlign="Middle" />
                                        <HeaderStyle Wrap="False" Width="4%" HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemTemplate>
                                            <asp:CheckBox ID="ckbSelect" runat="server" SkinID="checkboxSkin" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="WeekPlanSortId" HeaderText="计划编号">
                                        <ItemStyle Width="4%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <HeaderStyle Width="4%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="WorkItem" HeaderText="计划名称">
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="7%" Wrap="True" />
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="7%" Wrap="False" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="PlanStep" HeaderText="实施步骤">
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="7%" Wrap="True" />
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="7%" Wrap="False" />
                                    </asp:BoundField>
                                    <asp:TemplateField HeaderText="计划来源">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="lbtnSource" runat="server" CausesValidation="False" OnClick="lbtnSource_Click"></asp:LinkButton>
                                        </ItemTemplate>
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" />
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" />
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="CompleteTime" HeaderText="完成时间" DataFormatString="{0:yyyy-MM-dd}"
                                        HtmlEncode="False">
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="8%" Wrap="False" />
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="8%" Wrap="False" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="MasterDepartment" HeaderText="责任部门">
                                        <HeaderStyle Width="10%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle Width="10%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="MasterPeople" HeaderText="责任人">
                                        <ItemStyle Width="8%" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                        <HeaderStyle Width="8%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="SlaveDepartment" HeaderText="配合部门">
                                        <HeaderStyle Width="9%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle Width="9%" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="SlaveDepartmentDuty" HeaderText="配合部门责任">
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="10%" Wrap="True" />
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" Wrap="False" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="EvaluatePeople" HeaderText="评估人">
                                        <ItemStyle Width="8%" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                        <HeaderStyle Width="8%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Remart" HeaderText="备注">
                                        <ItemStyle Width="7%" HorizontalAlign="Left" VerticalAlign="Middle" />
                                        <HeaderStyle Width="7%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    </asp:BoundField>
                                    <asp:TemplateField HeaderText="操作">
                                        <ItemTemplate>
                                            <asp:Button ID="btnDel" runat="server" Text="删除" OnClick="btnDel_Click" SkinID="buttonSkin"
                                                OnClientClick="return confirm('确认要删除吗？');" />
                                        </ItemTemplate>
                                        <HeaderStyle Wrap="False" Width="8%" HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle Width="8%" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="WeekPlanId" HeaderText="id" Visible="False"></asp:BoundField>
                                    <asp:BoundField DataField="PlanSendState" HeaderText="PlanSendState" Visible="False" />
                                    <asp:BoundField DataField="Source" HeaderText="计划来源" Visible="False">
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="MonthPlanId" HeaderText="MonthPlanId" Visible="False" />
                                </Columns>
                            </asp:GridView>
                            <table cellpadding="0" cellspacing="1" style="background-color: #d0d0ce;" border="0"
                                width="100%">
                                <tr style="background-color: #ffffff;">
                                    <td style="width: 4%">
                                        <input id="Hidden1" style="width: 80%" type="hidden" /></td>
                                    <td style="width: 4%" valign="middle">
                                        <input id="txtWeekPlanSortId" runat="server" style="width: 80%;" type="text" />
                                        <asp:CompareValidator ID="CompareValidator3" runat="server" ControlToValidate="txtWeekPlanSortId"
                                            Display="Dynamic" ErrorMessage="计划编号只能为整数" Operator="DataTypeCheck" Type="Integer"
                                            Width="0px"></asp:CompareValidator></td>
                                    <td valign="middle" align="center" style="width: 7%">
                                        <asp:TextBox ID="txtWorkItem" runat="server" TextMode="MultiLine" Width="90%" SkinID="textboxMultiLineSkin"></asp:TextBox></td>
                                    <td valign="middle" align="center" style="width: 7%">
                                        <asp:TextBox ID="txtPlanStep" runat="server" TextMode="MultiLine" Width="90%" SkinID="textboxMultiLineSkin"></asp:TextBox></td>
                                    <td valign="middle" align="center" style="width: 10%">
                                        <asp:DropDownList ID="drpSource" runat="server" Width="90%">
                                            <asp:ListItem>新增</asp:ListItem>
                                            <asp:ListItem>内部合作协议</asp:ListItem>
                                        </asp:DropDownList></td>
                                    <td valign="middle" align="center" style="width: 8%">
                                        <asp:TextBox ID="txtCompleteTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" Width="90%" SkinID="textboxSkin"></asp:TextBox><asp:CompareValidator
                                            ID="CompareValidator2" runat="server" ControlToValidate="txtCompleteTime" Display="Dynamic"
                                            ErrorMessage="日期类型不正确" Operator="DataTypeCheck" Type="Date" Width="0px"></asp:CompareValidator> 
                                    </td>
                                    <td valign="middle" align="center" style="width: 10%">
                                        <asp:TextBox ID="txtMasterDepartment" Width="90%" runat="server" Enabled="False"
                                            SkinID="textboxSkin"></asp:TextBox></td>
                                    <td valign="middle" align="center" style="width: 8%">
                                        <input id="txtMasterPeople" type="text" runat="server" style="width: 60%;" readonly="readOnly" /><a
                                            href="#" onclick="javascript:userinfo('txtMasterPeople');"><img alt="" src="../images/addpages.jpg"
                                                border="0" /></a></td>
                                    <td valign="middle" align="center" style="width: 9%">
                                        <input id="txtSlaveDepartment" type="text" runat="server" style="width: 60%;" readonly="readOnly" /><a
                                            href="#" onclick="javascript:slavedepartment('txtSlaveDepartment');"><img alt=""
                                                src="../images/addpages.jpg" border="0" /></a></td>
                                    <td valign="middle" align="center" style="width: 10%">
                                        <asp:TextBox ID="txtSlaveDepartmentDuty" runat="server" TextMode="MultiLine" Width="90%"
                                            SkinID="textboxMultiLineSkin"></asp:TextBox></td>
                                    <td valign="middle" style="width: 8%" align="center">
                                        <input id="txtEvaluatePeople" type="text" runat="server" style="width: 60%;" readonly="readOnly" /><a
                                            href="#" onclick="javascript:userinfo('txtEvaluatePeople');"><img alt="" src="../images/addpages.jpg"
                                                border="0" /></a></td>
                                    <td valign="middle" style="width: 7%" align="center">
                                        <asp:TextBox ID="txtRemark" runat="server" TextMode="MultiLine" Width="90%" SkinID="textboxMultiLineSkin"></asp:TextBox></td>
                                    <td style="width: 8%" valign="middle">
                                        <asp:Button ID="btnAdd" runat="server" Width="90%" Text="确定" OnClick="btnAdd_Click"
                                            SkinID="buttonSkin" ValidationGroup="1" /></td>
                                </tr>
                            </table>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
